//
//  FileData.h
//  iLiteNote
//
//  Created by xiangism on 15/8/26.
//  Copyright (c) 2015年 LiteNice. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "RATree/RATreeView.h"

@interface FileData : NSObject

@property (nonatomic) bool isFile;
@property (nonatomic, strong) NSString *path;
@property (nonatomic, strong) NSMutableArray *children;

- (id)initWithName:(NSString *)path isFile:(BOOL)isFile children:(NSMutableArray *)children;
+ (id)dataObjectWithName:(NSString*)path isFile:(BOOL)isFile children:(NSMutableArray *)children;

- (void)addChild:(id)child;
- (void)removeChild:(id)child;

//- (NSString*)getBaseName;


@end

@interface RATreeView (FileDataSupport)

- (BOOL)expandItem:(NSString*)path;

@end